package com.example.script.admin.enums;

import com.example.script.common.api.IErrorCode;

public enum ScriptResult implements IErrorCode {
    ADD_SUCCESS(0,"添加成功"),
    SCRIPT_NAME(1,"剧本名字不能为空"),
    TYPE(2,"剧本类型不能为空"),
    PLAYER_NUMBER(3,"剧本游玩人数不能为空"),
    GAME_TIME(4,"剧本游玩时长不能为空"),
    SCRIPT_FAILED(5,"添加剧本失败"),
    UPDATE_SUCCESS(6,"修改成功"),
    UPDATE_FAILED(7,"修改失败"),
    DELETE_SUCCESS(8,"删除成功"),
    DELETE_FAILED(9,"删除失败");





    private  long code;
    private  String message;

    ScriptResult(long code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
